export interface Validator {
    (rules:any,value:string,callback:Function):void;
}


export interface Rule{
    required?:boolean;
    message?:string;
    trigger:string|Array<string>;
    type?:string;
    min?:number;
    max?:number;
    minlength?:number;
    maxlength?:number;
    validator?:Validator;
}



interface Rules{
    [name:string]:Array<Rule>;
}

export default Rules;